{% extends "base.html" %}

{% block title %}添加IP配置{% endblock %}

{% block header %}添加IP配置{% endblock %}

{% block content %}
    <div class="container">
        {% if error %}
    <script>
        window.onload = function() {
            alert('{{ error }}');
        };
    </script>
    {% endif %}
        <form method="POST" action="{{ url_for('add_ip.add_ip') }}">
            <div class="form-group">
                <label for="line">线别</label>
                <input type="text" class="form-control" id="line" name="line" required>
            </div>
            <div class="form-group">
                <label for="address">IP地址</label>
                <input type="text" class="form-control" id="address" name="address" required>
            </div>
            <div class="form-group">
                <label for="software">测试软件</label>
                <input type="text" class="form-control" id="software" name="software" required>
            </div>
            <div class="form-group">
                <label for="product_type">产品类型</label>
                <input type="text" class="form-control" id="product_type" name="product_type" required>
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>
{% endblock %}